package way.learning.zz.source;



import java.io.IOException;
import java.util.Set;

/**
 * 此接口的实现代表所要轮询监测的目录
 */
public interface PolledDirectory {

    /**
     * Returns a snapshot of the current content in this directory, i.e.
     *
     */
    Set<FileElement> listFiles() throws IOException;

    /**
     * It is recommended to implement this method if clients wants to remove this
     *
     */
    @Override
     boolean equals(Object obj);

    /**
     * It is recommended to implement this method if clients wants to remove this
     */
    @Override
    int hashCode();
}
